<?php 

namespace app\common\validate\record;

use think\Validate;

class RecordCompletionTask extends Validate 
{ 
    protected $rule = [
        'uid' => 'require',
        'remark' => 'require',
        'start_time' => 'require',
        'end_time' => 'require',
        'place' => 'require',
    ];

    protected $message = [
        'uid.require' => '请输入用户ID',
        'remark.require' => '请输入原因',
        'start_time.require' => '请输入开始时间',
        'end_time.require' => '请输入结束时间',
        'place.require' => '请输入出差地点',
    ];

    protected $scene = [
        'edit' => ['uid','remark','examine_admin_name','admin_name','start_time','end_time','place','is_business_travel','id'],
        'add' => ['uid','remark','examine_admin_name','admin_name','start_time','end_time','place','is_business_travel'],
    ];

} 
